package com.eveinfo.tools;

import android.os.CountDownTimer;
import android.widget.TextView;


public class TrainingSkillCountDown extends CountDownTimer {

	private TextView tv;

	public TrainingSkillCountDown(TextView tv, long millisInFuture, long countDownInterval) {
		super(millisInFuture, countDownInterval);
		this.tv = tv;
	}

	@Override
	public void onFinish() {
		tv.setText("done!");
	}

	@Override
	public void onTick(long millisUntilFinished) {
		tv.setText(Tools.convertTime(millisUntilFinished, true));
	}
}